.. _syntax-error,-unexpected-token-",": syntax error, unexpected token "," ---------------------------------- .. meta:: :description: syntax error, unexpected token ",": A comma is used to separate arguments in a function call. :og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png :og:type: article :og:title: syntax error, unexpected token "," :og:description: A comma is used to separate arguments in a function call :og:url: https://php-errors.readthedocs.io/en/latest/messages/syntax-error%2C-unexpected-token-%22%2C%22.html :og:locale: en :twitter:card: summary_large_image :twitter:site: @exakat :twitter:title: syntax error, unexpected token "," :twitter:description: syntax error, unexpected token ",": A comma is used to separate arguments in a function call :twitter:creator: @exakat :twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png .. raw:: html Description ___________ A comma is used to separate arguments in a function call. A functioncall may also use named parameters, to identify the arguments. In this case, the name of the parameter is provided, but not its value. Example _______ .. code-block:: php Solutions _________ + Remove the parameter name from the function call. + Provide a value for the parameter name in the functioncall. Related Error Messages ______________________ + :ref:`syntax-error,-unexpected-token-",",-expecting-"]"` + :ref:`syntax-error,-unexpected-token-",",-expecting-variable-or-"$"` + :ref:`syntax-error,-unexpected-token-",",-expecting-variable`